import request from '@/utils/request'

// 查询工商设立列表
export function listFundRegistered(query) {
  return request({
    url: '/registered/fundRegistered/list',
    method: 'get',
    params: query
  })
}

// 查询工商设立详细
export function getFundRegistered(id) {
  return request({
    url: '/registered/fundRegistered/' + id,
    method: 'get'
  })
}
// 根据fundId查询工商设立详细
export function getFundRegisteredByFundId(fundId) {
  return request({
    url: '/registered/fundRegistered/getInfoByFundId/' + fundId,
    method: 'get'
  })
}

// 保存工商设立
export function saveFundRegistered(data) {
  return request({
    url: '/registered/fundRegistered/save',
    method: 'post',
    data: data
  })
}

// 删除工商设立
export function delFundRegistered(id) {
  return request({
    url: '/registered/fundRegistered/' + id,
    method: 'delete'
  })
}

// 删除工商设立股东
export function delFundRegisteredInvestor(id) {
  return request({
    url: '/registered/fundRegistered/delRegisteredInvestor/' + id,
    method: 'delete'
  })
}

// 获取基金简称/全称
export function getFundFullName(id) {
  return request({
    url: '/registered/fundRegistered/getFundFullName/' + id,
    method: 'get'
  })
}

